//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02A
TN_Widget.CreateTable([['Snot','The Machine Shop Concert Lounge','Flint, MI','Friday','7/18/2025','7:00 PM','6980065','Snot-7-18-2025'],['Powerman 5000','The Machine Shop Concert Lounge','Flint, MI','Wednesday','7/23/2025','6:00 PM','7077167','Powerman-5000-7-23-2025'],['Whitey Morgan & The 78s','The Machine Shop Concert Lounge','Flint, MI','Saturday','8/2/2025','7:00 PM','7175856','Whitey-Morgan---The-78s-8-2-2025'],['Otherwise','The Machine Shop Concert Lounge','Flint, MI','Thursday','8/7/2025','7:00 PM','7077172','Otherwise-8-7-2025'],['Plush','The Machine Shop Concert Lounge','Flint, MI','Friday','8/15/2025','6:00 PM','7086830','Plush-8-15-2025'],['Kin Faux','The Machine Shop Concert Lounge','Flint, MI','Saturday','8/16/2025','7:00 PM','7077169','Kin-Faux-8-16-2025'],['Tyler Braden','The Machine Shop Concert Lounge','Flint, MI','Thursday','8/28/2025','7:00 PM','7157963','Tyler-Braden-8-28-2025'],['Paul Cauthen','The Machine Shop Concert Lounge','Flint, MI','Friday','9/5/2025','7:00 PM','7242648','Paul-Cauthen-9-5-2025'],['Dorothy & Eddie and The Getaway','The Machine Shop Concert Lounge','Flint, MI','Tuesday','9/16/2025','7:00 PM','7194520','Dorothy---Eddie-and-The-Getaway-9-16-2025'],['No Resolve','The Machine Shop Concert Lounge','Flint, MI','Friday','9/26/2025','7:00 PM','7224788','No-Resolve-9-26-2025'],['Life of Agony','The Machine Shop Concert Lounge','Flint, MI','Saturday','9/27/2025','6:30 PM','7144838','Life-of-Agony-9-27-2025'],['Brent Cobb','The Machine Shop Concert Lounge','Flint, MI','Tuesday','9/30/2025','7:00 PM','7120526','Brent-Cobb-9-30-2025'],['Whiskey Friends - Tribute to Morgan Wallen','The Machine Shop Concert Lounge','Flint, MI','Saturday','10/4/2025','7:00 PM','7165007','Whiskey-Friends---Tribute-to-Morgan-Wallen-10-4-2025'],['Tennessee Whiskey - Tribute to Chris Stapleton','The Machine Shop Concert Lounge','Flint, MI','Saturday','10/11/2025','7:00 PM','7165005','Tennessee-Whiskey---Tribute-to-Chris-Stapleton-10-11-2025'],['Kings of Thrash','The Machine Shop Concert Lounge','Flint, MI','Friday','10/24/2025','6:30 PM','7077170','Kings-of-Thrash-10-24-2025'],['Texas Hippie Coalition','The Machine Shop Concert Lounge','Flint, MI','Saturday','10/25/2025','7:00 PM','7165004','Texas-Hippie-Coalition-10-25-2025'],['Mushroomhead & Psychostick','The Machine Shop Concert Lounge','Flint, MI','Thursday','10/30/2025','6:00 PM','7165006','Mushroomhead----Psychostick-10-30-2025'],['The Ultimate Doors - A Tribute to The Doors','The Machine Shop Concert Lounge','Flint, MI','Saturday','11/8/2025','7:00 PM','7165698','The-Ultimate-Doors---A-Tribute-to-The-Doors-11-8-2025'],['James Barker Band','The Machine Shop - ON','Sault Ste Marie, Canada','Tuesday','11/11/2025','7:30 PM','7207560','James-Barker-Band-11-11-2025'],['Richie Kotzen & John 5','The Machine Shop Concert Lounge','Flint, MI','Thursday','11/20/2025','7:00 PM','7158090','Richie-Kotzen---John-5-11-20-2025'],['Creed Fisher','The Machine Shop Concert Lounge','Flint, MI','Thursday','12/11/2025','7:00 PM','7165697','Creed-Fisher-12-11-2025']],'The Machine Shop','http://www.ticketnetwork.com/ticket/The-Machine-Shop-events.aspx');